package com.cdc.shapeofview;

import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import android.view.View;
public class MaterialDesignShrineActivity extends AppCompatActivity {


    View menu;


    View bottomSheet;

    View middleSheet;

    View topSheet;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.shape_of_view_activity_main_shrine);
        menu=findViewById(R.id.menu);
        middleSheet=findViewById(R.id.middleSheet);
        bottomSheet=findViewById(R.id.bottomSheet);

    }


    public void onMenuClicked(View view) {
        final boolean enabled = middleSheet.isEnabled();
        if(enabled){
            middleSheet.animate().translationY(bottomSheet.getHeight());
        } else {
            middleSheet.animate().translationY(0);
        }
        middleSheet.setEnabled(!enabled);
    }


    void onTopSheetClicked() {

    }


    void onAddToCartClicked() {

    }
}
